Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw DirectoryNotFoundException when !Directory.Exists() #459

Merged

Conversation

doingnz
Copy link
Contributor

@doingnz doingnz commented Feb 10, 2024

PackageManager.cs was throwing a misleading FileNotFoundException when a directory was not found.

Similar in CloudPackageCreateCommand.

For extra resilience, get the full path to the user supplied folder before checking if it exists. This works around the challenge of the difference between v1 (expects parameter pointing to .csproj) and v2 (expects folder with single .csproj)

PackageManager.cs was throwing a misleading FileNotFoundException when a directory was not found. Similar in CloudPackageCreateCommand. For extra resiliance, get the full path to the user supplied folder.
@ctacke ctacke merged commit de5a1d1 into WildernessLabs:develop Feb 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants